package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {
        int prrice = 2000;
        if (prrice >= 2000) {
            prrice *= 0.5;
        } else {
            if (prrice >= 1000) {
                prrice *= 0.7;
            } else {
                if (prrice >= 500) {
                    prrice *= 0.8;
                } else {
                    prrice *= 0.9;
                }
            }
        }
        System.out.println(prrice);
    }
}